package com.example.siyun.pojo;


import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

/*
 * 商品列表
 * @author：刘宝龙
 *@Date: 2022-10-12
 * */

public class JsProduct {
  //销量
  private int xiaoliang;
  //收藏数量
  private int collectionVolume;
  //点赞数量
  private int fabulous;
  //商品id
  private int productId;
  //商品编号
  private int productCode;
  //商品分类
  private int categroyId;
  //商品推荐
  private int recommend;
  //是否可用优惠券
  private int discount;
  //服务保证
  private int ensure;
  //商品名字
  private String productName;
  //搜索关键字
  private String searchKeywords;
  //商品主图
  private String mainImage;
  //商品现价
  private double currentpriceProduct;
  //商品原价
  private double originalpriceProduct;
  //商品描述
  private String productDescription;
  //点击量
  private int hits;
  //商品审核状态
  private int productSate;
  //创建人
  private int createUser;
  //创建时间
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date createDate;
  //更新人
  private int updateUser;
  //更新时间
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date updateDate;
  //状态
  private int state;
  //商品标签
  private String productLabel;
  //假删
  private int isdel;

  public int getXiaoliang() {
    return xiaoliang;
  }

  public void setXiaoliang(int xiaoliang) {
    this.xiaoliang = xiaoliang;
  }

  public int getCollectionVolume() {
    return collectionVolume;
  }

  public void setCollectionVolume(int collectionVolume) {
    this.collectionVolume = collectionVolume;
  }

  public int getFabulous() {
    return fabulous;
  }

  public void setFabulous(int fabulous) {
    this.fabulous = fabulous;
  }

  public int getIsdel() {
    return isdel;
  }

  public void setIsdel(int isdel) {
    this.isdel = isdel;
  }

  public String getProductLabel() {
    return productLabel;
  }

  public void setProductLabel(String productLabel) {
    this.productLabel = productLabel;
  }

  public int getState() {
    return state;
  }

  public void setState(int state) {
    this.state = state;
  }

  public int getProductId() {
    return productId;
  }

  public void setProductId(int productId) {
    this.productId = productId;
  }

  public int getProductCode() {
    return productCode;
  }

  public void setProductCode(int productCode) {
    this.productCode = productCode;
  }

  public int getCategroyId() {
    return categroyId;
  }

  public void setCategroyId(int categroyId) {
    this.categroyId = categroyId;
  }

  public int getRecommend() {
    return recommend;
  }

  public void setRecommend(int recommend) {
    this.recommend = recommend;
  }

  public int getDiscount() {
    return discount;
  }

  public void setDiscount(int discount) {
    this.discount = discount;
  }

  public int getEnsure() {
    return ensure;
  }

  public void setEnsure(int ensure) {
    this.ensure = ensure;
  }

  public String getProductName() {
    return productName;
  }

  public void setProductName(String productName) {
    this.productName = productName;
  }

  public String getSearchKeywords() {
    return searchKeywords;
  }

  public void setSearchKeywords(String searchKeywords) {
    this.searchKeywords = searchKeywords;
  }

  public String getMainImage() {
    return mainImage;
  }

  public void setMainImage(String mainImage) {
    this.mainImage = mainImage;
  }

  public double getCurrentpriceProduct() {
    return currentpriceProduct;
  }

  public void setCurrentpriceProduct(double currentpriceProduct) {
    this.currentpriceProduct = currentpriceProduct;
  }

  public double getOriginalpriceProduct() {
    return originalpriceProduct;
  }

  public void setOriginalpriceProduct(double originalpriceProduct) {
    this.originalpriceProduct = originalpriceProduct;
  }

  public String getProductDescription() {
    return productDescription;
  }

  public void setProductDescription(String productDescription) {
    this.productDescription = productDescription;
  }

  public int getHits() {
    return hits;
  }

  public void setHits(int hits) {
    this.hits = hits;
  }

  public int getProductSate() {
    return productSate;
  }

  public void setProductSate(int productSate) {
    this.productSate = productSate;
  }

  public int getCreateUser() {
    return createUser;
  }

  public void setCreateUser(int createUser) {
    this.createUser = createUser;
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public int getUpdateUser() {
    return updateUser;
  }

  public void setUpdateUser(int updateUser) {
    this.updateUser = updateUser;
  }

  public Date getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(Date updateDate) {
    this.updateDate = updateDate;
  }

  @Override
  public String toString() {
    return "JsProduct{" +
            "xiaoliang=" + xiaoliang +
            ", collectionVolume=" + collectionVolume +
            ", fabulous=" + fabulous +
            ", productId=" + productId +
            ", productCode=" + productCode +
            ", categroyId=" + categroyId +
            ", recommend=" + recommend +
            ", discount=" + discount +
            ", ensure=" + ensure +
            ", productName='" + productName + '\'' +
            ", searchKeywords='" + searchKeywords + '\'' +
            ", mainImage='" + mainImage + '\'' +
            ", currentpriceProduct=" + currentpriceProduct +
            ", originalpriceProduct=" + originalpriceProduct +
            ", productDescription='" + productDescription + '\'' +
            ", hits=" + hits +
            ", productSate=" + productSate +
            ", createUser=" + createUser +
            ", createDate=" + createDate +
            ", updateUser=" + updateUser +
            ", updateDate=" + updateDate +
            ", state=" + state +
            ", productLabel='" + productLabel + '\'' +
            ", isdel=" + isdel +
            '}';
  }

}
